
import compareVersion from "./compareVersion.js"

import format from "./format.js"

import math from "./math.js"

import upload from "./upload.js"

import validate from "./validate.js"

import getAge from "./getAge.js"

import unique from "./unique.js"

import uQRCode from './uqrcode.js'

import clear from "./clear.js"

import getParam from "./getParam.js"

import deepMerge from "./deepMerge.js"

import deepClone from "./deepClone.js"

import rePath from "./path.js"

import getAges from "./getAges.js"

import valiIdCard from "./valiCode.js"

import permision from "./permission.js"

import downloadFileBase from "./downloadFile.js"

const install = (Vue, vm) => {
	vm.$xt.validate = validate
	vm.$xt.util = {
		deepMerge,
		deepClone,
		getAge,
		unique,
		uQRCode,
		compareVersion,
		getParam,
		path: rePath,
		clearAll: clear.clearAll,
		clearCache: clear.clearCacheWithOutToken,
		formatPrice: format.formatPrice,
		getNowTime: format.getNowTime,
		formatNumber: format.formatNumber,
		math,
		upload,
		getAges,
		valiIdCard,
		permision,
		downloadFileBase
	}
}

export default {
	install
}